package environment;

import java.util.Vector;

public class Id {
	public static int counterID;
	private Vector<Integer> id;
	
	//Constructor
	public Id(){
		this.id = new Vector<Integer>(3);
		this.id.add(0);
		this.id.add(0);
		this.id.add(counterID++);
	}
	
	public Id(Vector<Integer> inputVector) {
		this.id = inputVector;
	}

	public Id extendId(){
		Vector<Integer> ans = (Vector<Integer>) this.id.clone();
		ans.remove(0);
		ans.add(this.counterID++);
		return new Id(ans);
	}
	
	public int getIdAt(int location){
		return id.elementAt(location);
	}
	
}
